<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition template="/pages/layout/mainLayout.xhtml">
	<ui:define name="bodyComUsuario">

		<div class="post">
		<h2 class="title"><h:outputText
			value="#{bundle['locanet.funcionario.edicao.titulo']}" /></h2>
		<h:form>
			<h:inputHidden value="#{funcionarioBean.entity.id}" />
			<p:panel header="#{bundle['locanet.dadosPessoais']}">
				<h:panelGrid columns="3">
					<h:outputLabel value="#{bundle['locanet.pessoa.nome']}"
						for="nomeFuncionario" />
					<h:inputText maxlength="100" value="#{funcionarioBean.entity.nome}"
						id="nomeFuncionario" />
					<h:messages for="nomeFuncionario" styleClass="error" />

					<h:commandButton value="#{bundle['locanet.butoes.salvar']}"
						action="#{funcionarioBean.update}" />
					<h:commandLink immediate="true" action="#{funcionarioBean.search}"
						styleClass="button" value="#{bundle['locanet.butoes.voltar']}" />
				</h:panelGrid>
			</p:panel>
		</h:form></div>
	</ui:define>
</ui:composition>
</html>